package com.eagle.common.core.constant;

/**
 * @author : wcy
 * @Date: 2017/10/19
 * @Time: 15:38
 */
public class ResultCodeConstant {

    private ResultCodeConstant() {
    }

    /**
     * 需要登录
     */
    public static final int NEED_LOGIN = -1;
    /**
     * 成功返回码
     */
    public static final int SUCCESS_SERVICE_CODE = 8200;

    /**
     * 业务异常逻辑放回，比如哪个不满足要求
     */
    public static final String BUSINESS_SERVICE_CODE = "8300";

    /**
     * 系统错误
     */
    public static final int ERROR_SERVICE_CODE = 8500;

    /**
     * 登录异常码,token失效
     */
    public static final int TOKEN_INVALID_ERROR_CODE = 8408;

    /**
     * 登录授权失败返回
     */
    public static final int AUTO_TOKEN_ERROR_CODE = 8601;

    /**
     * 登录权限变更
     */
    public static final int AUTO_RIGHT_ERROR_CODE = 8602;

    /**
     * 报表异常情况：无数据，
     */
    public static final int ERROR_CHART_CODE = 8700;

    /**
     * 财务密码登录异常码,token失效，
     */
    public static final int FINANCE_TOKEN_ERROR_CODE = 8800;
}